package io.geekidea.boot.insurancePolicy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.geekidea.boot.insurancePolicy.dto.InsuranceExcel;
import io.geekidea.boot.insurancePolicy.dto.InsurancePolicyDto;
import io.geekidea.boot.insurancePolicy.dto.UpdateIpDto;
import io.geekidea.boot.insurancePolicy.entity.InsurancePolicyList;
import io.geekidea.boot.insurancePolicy.query.*;

import io.geekidea.boot.insurancePolicy.vo.NoguaranteeordersVo;
import io.geekidea.boot.insurancePolicy.vo.PersManagVo;
import io.geekidea.boot.insurancePolicy.vo.StoreWl;
import io.geekidea.boot.insurancePolicy.vo.VipVo;
import io.geekidea.boot.persmanag.dto.PersManagExcel;
import io.geekidea.boot.persmanag.query.PersManagQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;


@Mapper
public interface InsurancePolicyMapper extends BaseMapper<InsurancePolicyList> {
    Page<InsurancePolicyList> getInsurancePolicyList(Page<InsurancePolicyList> page,@Param("param") InsurancePolicyQuery insurancePolicyQuery);

    List<InsuranceExcel> getInsurancePolicyList(@Param("param")InsurancePolicyQuery insurancePolicyQuery);

    int addinsurancePolicy(@Param("param") InsurancePolicyDto insurancePolicyDto);

    //查询工程师
    List<PersManagVo>getEngineerList(@Param("param") EngineerQuery engineerQuery);

    //门店物料
    List<StoreWl> getStoreWlList(@Param("param") StoreWlQuery storeWlQuery);

    //会员详情
    List<VipVo> getVipList(@Param("param") VipQuery vipQuery);

    List<NoguaranteeordersVo> getNoguranteeorder();

    int updateAuditStatus(@Param("update") UpdateIpDto updateIpDto);



    List<InsuranceExcel> getDownloadExcelList(@Param("param")InsuranceExcelQuery insuranceExcelQuery);

}
